/**
 * 
 */
package com.vision.core.cm.serv.rpc;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * @author Mark
 *
 */
public interface AbstractServiceAsync<T> {
	
	void create(T object, AsyncCallback<T> callback);
	
	void getAll(AsyncCallback<List<T>> callback);
	
	void getById(long id, AsyncCallback<T> callback);
	
	void update(T object, AsyncCallback<T> callback);
	
	void delete(T object, AsyncCallback<T> callback);

}
